Onekey System API

Data Mappings

Codes

ModuleDescription
codes.jsonTemplate for mapping OneKey Codes to Salesforce dynamic picklists.
codeValues.jsonTemplate for mapping OneKey values to Salesforce picklist values by using a OneKey code from Codes.json.
codes.json

Provides the default template for mapping codes. To define country-specific mappings, create a file named codes_{Country_isoCod2}.json. If no country-specific file exists, the system uses the default codes.json.

Field NameDescription
Source_CodeOneKey code as per the code's endpoint.
Target_FieldFullname of Salesforce StandardValueSet.
Mapping_FieldOptional. Common or mapping names are assigned to a specific Salesforce field and are utilized across all provided mapping templates.
DescriptionOptional. The description for the entity field.
isNewValueRequiredIndicates if new unmapped values are loaded along with mapped values (true) or only mapped values are loaded (false).

Source: ./src/main/resources/mappingTemplates/codes/codes.json

(back to top)

codeValues.json

Provides the default template for mapping code values. To define country-specific mappings, create a file named codeValues_{Country_isoCod2}.json. If no country-specific file exists, the system uses the default codeValues.json.

Field NameDescription
Source_CodeOneKey code as per the code's endpoint.
CodeValuesOptional. Specifies picklist conversions.

Source: ./src/main/resources/mappingTemplates/codes/codeValues.json

(back to top)

ModuleDescription
businessaccount.jsonTemplate for mapping "Workplace" search fields.
personaccount.jsonTemplate for mapping "Individual" search fields.
searchFunctions.dwlUtility functions for transforming search fields.
searchMapper.dwlFunctions to create OneKey search payload.
businessaccount.json

Provides the default template for mapping "Workplace" search fields. To define country-specific mappings, create a file named businessaccount_{Country_isoCod2}.json. If no country-specific file exists, the system uses the default businessaccount.json.

Field NameDescription
Source_FieldSalesforce field name in entityName.fieldName format.
Target_FieldOneKey field name as per search endpoint.
MethodOptional. Use "FUZZY" for fuzzy text searches.
FunctionOptional. Function name from "searchFunctions.dwl". Used to transform the source value.
CodeValuesOptional. Specifies picklist conversions or inherits them from codeValues.json when referCodesMapping is used.

Source: ./src/main/resources/mappingTemplates/search/businessaccount.json

(back to top)

personaccount.json

Provides the default template for mapping "Individual" search fields. To define country-specific mappings, create a file named personaccount_{Country_isoCod2}.json. If no country-specific file exists, the system uses the default personaccount.json.

Field NameDescription
Source_FieldSalesforce field name in entityName.fieldName format.
Target_FieldOneKey field name as per search endpoint.
MethodOptional. Use "FUZZY" for fuzzy text searches.
FunctionOptional. Function name from "searchFunctions.dwl". Used to transform the source value.
CodeValuesOptional. Specifies picklist conversions or inherits them from codeValues.json when referCodesMapping is used.

Source: ./src/main/resources/mappingTemplates/search/personaccount.json

(back to top)

searchFunctions.dwl

Utility functions for transforming search fields. Create new functions for any other transformations here.

Source: ./src/main/resources/mappingTemplates/search/searchFunctions.dwl

(back to top)

searchMapper.dwl

Creates the payload for a OneKey search. Uses mapping template from country specific businessaccount.json or personaccount.json. If a country-specific template isn't found, the default template is used.

Source: ./src/main/resources/mappingTemplates/search/searchMapper.dwl

(back to top)

Download

ModuleDescription
activity.jsonTemplate for mapping OneKey "Activity" to Salesforce fields.
individual.jsonTemplate for mapping OneKey "Individual" to Salesforce fields.
objects.jsonSalesforce Object names reference file.
workplace.jsonTemplate for mapping OneKey "Workplace" to Salesforce fields.
activityMapper.dwlFunctions for mapping OneKey "Activity" to Salesforce fields.
individualMapper.dwlFunctions for mapping OneKey "Individual" to Salesforce fields.
workplaceMapper.dwlFunctions for mapping OneKey "Workplace" to Salesforce fields.
activity.json

Provides the default template for mapping "Activity" search fields. To define country-specific mappings, create a file named activity_{Country_isoCod2}.json. If no country-specific file exists, the system uses the default activity.json.

Field NameDescription
Source_FieldLHS identifier used in activityMapper.dwl
Target_FieldSalesforce field name.
CodeValuesOptional. Specifies picklist conversions or inherits them from codeValues.json when referCodesMapping is used.

Source: ./src/main/resources/mappingTemplates/download/activity.json

(back to top)

individual.json

Provides the default template for mapping "Individual" search fields. To define country-specific mappings, create a file named individual_{Country_isoCod2}.json. If no country-specific file exists, the system uses the default individual.json.

Field NameDescription
Source_FieldLHS identifier used in individualMapper.dwl
Target_FieldSalesforce field name.
CodeValuesOptional. Specifies picklist conversions or inherits them from codeValues.json when referCodesMapping is used.

Source: ./src/main/resources/mappingTemplates/download/individual.json

(back to top)

objects.json

Salesforce Object names reference file.Create objects_{Country_isoCod2}.json for country-specific mappings. If a country-specific mapping isn't found, the default objects.json mapping will be considered.

Source: ./src/main/resources/mappingTemplates/download/objects.json

(back to top)

workplace.json

Provides the default template for mapping "Workplace" search fields. To define country-specific mappings, create a file named workplace_{Country_isoCod2}.json. If no country-specific file exists, the system uses the default workplace.json.

Field NameDescription
Source_FieldLHS identifier used in workplaceMapper.dwl
Target_FieldSalesforce field name.
CodeValuesOptional. Specifies picklist conversions or inherits them from codeValues.json when referCodesMapping is used.

Source: ./src/main/resources/mappingTemplates/download/workplace.json

(back to top)

activityMapper.dwl

Contains functions for mapping OneKey “Activity” to Salesforce fields. Uses identifiers from a country-specific activity.json file and object names from a country-specific objects.json file. If a country-specific file isn't present, default files are considered.

Field NameDescription
Function NameDescription
activity_base_mappingMaps OneKey activity to Salesforce Composite API format.
mapActivityRecordUses "activity_base_mapping" during Initial/Delta sync.
downloadActivityRecordUses "activity_base_mapping" during search-download.

Source: ./src/main/resources/mappingTemplates/download/activityMapper.dwl

(back to top)

individualMapper.dwl

Contains functions for mapping OneKey “individual” to Salesforce fields. Uses identifiers from a country-specific individual.json file and object names from a country-specific objects.json. If a country-specific file isn’t present, default files are considered.

Function NameDescription
Main Functions
mapIndividualRecordUses Mapper functions to map OneKey Individual to Salesforce Composite API format during Initial/Delta sync.
downloadIndividualRecordUses Mapper functions to map OneKey Individual to Salesforce Composite API format during search-download.
Mapper Functions
ind_base_mappingMaps OneKey Individual response header fields to the main entity.
ind_hcp_mappingMaps OneKey Individual response header fields to an extension entity.
ind_hcp_npi_mappingMaps OneKey Individual NPI data to a corresponding entity in Salesforce.
ind_person_education_mappingMaps OneKey Individual Education data to a corresponding entity in Salesforce.
ind_language_mappingMaps OneKey Individual Language data to a corresponding entity in Salesforce.
ind_care_specialty_mappingMaps OneKey Speciality to a master data entity. The ID of the master data will be used in Individual specialty mapping.
ind_healthcare_specialty_mappingMaps Speciality ID from master data to individual specialties.
ind_business_license_mappingMaps OneKey Individual license data and license address data to corresponding entities in Salesforce.
ind_address_mappingMaps OneKey Individual address data to a corresponding entity in Salesforce.
ind_relations_mappingMaps OneKey Individual relations data to a corresponding entity in Salesforce.

Source: ./src/main/resources/mappingTemplates/download/individualMapper.dwl

(back to top)

workplaceMapper.dwl

Contains functions for mapping OneKey “workplace” to Salesforce fields. Uses identifiers from a country-specific workplace.json file and object names from a country-specific objects.json‌ file. If a country-specific file isn't present, default files are considered.

Function NameDescription
Main Functions
mapWorkplaceRecordUses Mapper functions to map OneKey Workplace to Salesforce Composite API format during Initial//Delta sync.
downloadWorkplaceRecordUses Mapper functions to map OneKey Workplace to Salesforce Composite API format during search-download.
Mapper Functions
wkp_base_mappingMaps OneKey Workplace response header fields to a main entity.
wkp_hcp_mappingMaps OneKey Workplace response header fields to an extension entity.
wkp_hcp_npi_mappingMaps OneKey Workplace NPI data to a corresponding entity in Salesforce.
wkp_care_specialty_mappingMaps OneKey Speciality to Master data entity. The ID of the master data will be used in Workplace specialty mapping.
wkp_healthcare_specialty_mappingMaps Speciality ID from master data to Workplace specialties.
wkp_business_license_mappingMaps OneKey Workplace license data and license address data to corresponding entities in Salesforce.
wkp_address_mappingMaps OneKey Workplace address data to a corresponding entity in Salesforce.
wkp_relations_mappingMaps OneKey Workplace relations data to a corresponding entity in Salesforce.

Source: ./src/main/resources/mappingTemplates/download/workplaceMapper.dwl

(back to top)

Validation Request

ModuleDescription
objects.jsonSalesforce Object names reference file.
mapping.jsonTemplate for mapping Salesforce fields to OneKey validation request API format.
schema.jsonSchema ensures that all technically required fields for the OneKey validation request API are met.
mapper.dwlFunctions for mapping Salesforce fields to OneKey validation request API format.
objects.json

Salesforce objects supported for OneKey Validation request.

Source: ./src/main/resources/mappingTemplates/validation/objects.json

(back to top)

mapping.json

Provides the default template for mapping "Workplace" search fields. To define country-specific mappings, create a file named mapping_{Country_isoCod2}.json. If no country-specific file exists, the system uses the default mapping.json.

Field NameDescription
Source_FieldSalesforce field name in entityName.fieldName format.
Target_FieldOneKey field name as per validation request endpoint.
Mapping_FieldIdentifiers used in mapper.dwl.
CodeValuesOptional. Specifies picklist conversions or inherits them from codeValues.json when referCodesMapping is used.

Source: ./src/main/resources/mappingTemplates/validation/mapping.json

(back to top)

schema.json

Schema ensures that all technically required fields for the OneKey validation request API are met.

Source: ./src/main/resources/mappingTemplates/validation/schema.json

(back to top)

mapper.dwl

Contains functions for mapping Salesforce fields to the OneKey validation request API format. Uses identifiers from mapping.json file and object names from objects.json.

Function NameDescription
getMappingFieldsMaps Salesforce fields to corresponding OneKey fields.
mapCodeValuesTransforms Salesforce picklist values to OneKey codeValues using mapping.json
mapAccountMaps Salesforce Account fields to OneKey Validation Request fields.
mapSpecialtyMaps HealthCareProviderSpecialty fields to OneKey Validation Request fields.
mapProviderMaps HealthCareProvider fields to OneKey Validation Request fields.

Source: ./src/main/resources/mappingTemplates/validation/mapper.dwl

(back to top)

TypeApplication
OrganizationMuleSoft
Published by
MuleSoft Organization
Published onDec 15, 2025
Asset overview
Industries CloudHealthLife Sciences
Custom fields

Asset versions for 1.0.x

Asset versions
VersionActions
1.0.2
1.0.1
1.0.0